<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class RegionSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data = [
            [
                'id'=>1,
                'name'=>"上海"
            ],
            [
                'id'=>2,
                'name'=>"广州"
            ],
            [
                'id'=>3,
                'name'=>"深圳"
            ],[
                'id'=>4,
                'name'=>"北京"
            ]
        ];
        DB::table('regions')->insert($data);
    }
}
